<%--
  Created by IntelliJ IDEA.
  User: wangtao
  Date: 2019/10/6
  Time: 17:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h3>比较下面两个数的大小</h3>
    <form action="ex04.jsp" method="post">
        第一个数:<input type="text" name="first"><br>
        第二个数:<input type="text" name="second"><br>
        <input type="submit" value="确定">
    </form>

    <c:choose>
        <c:when test="${param.first==param.second&&(param.first!=null)}">${param.first}=${param.second}</c:when>
        <c:when test="${param.first>param.second}">${param.first}>${param.second}</c:when>
        <c:when test="${param.first<param.second}">${param.first}<${param.second}</c:when>
    </c:choose>
</body>
</html>
